#RPI Events Buddy
#Christopher Brown
#Robert Margolies
#Peter Lanciani
#Eric Cunningham

require 'rubygems'
require 'net/toc'

#event class
class Event
  def new_event(input_name)
    @@name = input_name
    puts "creating event '#{@@name}'"
  end
end

#Signs in as RPIEvents and echoes all messages sent to it
Net::TOC.new("rcoshambot", "tennis") do |msg, buddy|
  buddy.send_im("You said: #{msg}")

  if(msg == "end")
    Process.abort
  end

  input = msg.split(' ')
  #create event
  if (input[0] == "name")
      event1 = Event::new
      event1.new_event(input[1])
  end

end
